<?php
class Pagemanager_Data_Updatepagecontentvalues implements Pagemanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE page_content_values SET page_content_values.page_title = '".$variables['post']['page_title']."', page_content_values.page_description = '".$variables['post']['page_description']."', page_content_values.page_content = '".$variables['post']['page_content']."', page_content_values.image = '".$variables['post']['page_image']."' WHERE page_content_values.page_name = '".$variables['post']['page_name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }
}
